#include <stdio.h>

#pragma warning (disable:4996)

int  fun(unsigned  n, int  *zero)

{  int  count=0,max=0,t;

   do

   {  t=n%10;

/**************found**************/

      if(t==0)

      count++;

      if(max<t)  max=t;

      n=n/10;

   }while(n);

/**************found**************/

   *zero=count;

   return  max;

}

main()

{  unsigned  n;    int  zero,max;

   printf("\nInput n(unsigned):  ");  scanf("%d",&n);

   max = fun( n,&zero );

   printf("\nThe result:  max=%d    zero=%d\n",max,zero);

}

